package com.qd.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 发送内容
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_msg_receive_content")
public class MsgReceiveContent extends Model<MsgReceiveContent> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "content_id", type = IdType.ASSIGN_ID)
    private String contentId;
    /**
     * 模版编号
     */
    @TableField("temp_id")
    private String tempId;
    /**
     * 内容链接
     */
    @TableField("content_url")
    private String contentUrl;
    /**
     * 内容详细
     */
    @TableField("content_detail")
    private String contentDetail;
    /**
     * 内容属性
     */
    @TableField("prop")
    private String prop;
    /**
     * 创建时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 发送ID
     */
    @TableField("receive_id")
    private String receiveId;

    public void freeData() {
        this.contentId = null;
        this.tempId = null;
        this.contentUrl = null;
        this.contentDetail = null;
        this.prop = null;
        this.addTime = null;
        this.receiveId = null;
    }

}
